﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ThaireInvestmentWeb.Util
{
    public class ServiceFactory
    {
        public ServiceFactory()
        {
            //_service = new WcfSerivce.InvestmentServiceClient();
        }

        public static string UserId = "TestUser";

        static WcfSerivce.InvestmentServiceClient _service = null;

        public static WcfSerivce.InvestmentServiceClient GetService()
        {
            if (null == _service)
                _service = new WcfSerivce.InvestmentServiceClient();
            return _service;
        }
    }
}